<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
%><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"
%><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"
%><%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"
%><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
%>
<head>
    <title><fmt:message key="clickStreamRequest" /></title>
</head>
<body>
    <h1><fmt:message key="clickStreamRequest" /></h1>
    <c:url var="searchUrl" value="/domain/clickStreamRequest/search.action" />
    <h2><fmt:message key="label.search.byExample" /></h2>
    <form:form action="${searchUrl}" modelAttribute="clickStreamRequestSearchForm">
        <table>
            <tbody>
                <tr>
                    <th><fmt:message key="clickStreamRequest_clickstreamId" /></th>
                    <td>
                        <form:select path="clickStreamRequest.clickstreamInode" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.clickstreamInode",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                    , regExp : "[-+]?[0-9]+(\.[0-9]+)?"
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.clickstreamInode" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_serverName" /></th>
                    <td>
                        <form:input path="clickStreamRequest.serverName" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.serverName",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.serverName" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_protocol" /></th>
                    <td>
                        <form:input path="clickStreamRequest.protocol" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.protocol",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.protocol" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_serverPort" /></th>
                    <td>
                        <form:input path="clickStreamRequest.serverPort" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.serverPort",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                    , regExp : "[-+]?[0-9]+(\.[0-9]+)?"
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.serverPort" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_requestUri" /></th>
                    <td>
                        <form:input path="clickStreamRequest.requestUri" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.requestUri",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.requestUri" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_requestOrder" /></th>
                    <td>
                        <form:input path="clickStreamRequest.requestOrder" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.requestOrder",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                    , regExp : "[-+]?[0-9]+(\.[0-9]+)?"
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.requestOrder" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_queryString" /></th>
                    <td>
                        <form:textarea path="clickStreamRequest.queryString" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.queryString",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.queryString" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_timeStampper" /></th>
                    <td>
                        <form:input path="clickStreamRequest.timeStampper" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.timeStampper",
                                widgetType : "dijit.form.DateTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.timeStampper" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="clickStreamRequest_hostInode" /></th>
                    <td>
                        <form:input path="clickStreamRequest.hostInode" />
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "clickStreamRequest.hostInode",
                                widgetType : "dijit.form.ValidationTextBox",
                                widgetAttrs : {
                                    required : false
                                }
                            }));
                        </script>
                        <form:errors cssClass="error" path="clickStreamRequest.hostInode" />
                    </td>
                </tr>
                <tr>
                    <th><fmt:message key="label.pageSize" /></th>
                    <td>
                        <form:select path="searchParameters.pageSize">
                            <form:option value="1" label="1" />
                            <form:option value="5" label="5" />
                            <form:option value="10" label="10" />
                            <form:option value="25" label="25" />
                        </form:select>
                        <script type="text/javascript">
                            Spring.addDecoration(new Spring.ElementDecoration({
                                elementId : "searchParameters.pageSize",
                                widgetType : "dijit.form.FilteringSelect",
                                widgetAttrs : {
                                    required: "false"
                            }}));
                        </script>
                    </td>
                </tr>
            </tbody>
            <tfoot>
                <tr>
                    <td colspan="2">
                        <div class="buttons">
                            <button id="searchButtonEx" type="submit"><fmt:message key="label.search.submit" /></button>
                            <script type="text/javascript">
                                Spring.addDecoration(new Spring.ValidateAllDecoration({
                                    elementId:'searchButtonEx',
                                    event:'onclick'
                                }));
                            </script>
                        </div>
                    </td>
                </tr>
            </tfoot>
        </table>
    </form:form>

	<h2><fmt:message key="searchResult" /></h2>
	<jsp:include page="/WEB-INF/views/domain/clickStreamRequest/searchResult.jsp" flush="true" >
		<jsp:param name="includeBody" value="true" />
	</jsp:include>
</body>
